package com.nnnu.orange.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nnnu.orange.pojo.entity.Categories;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 存储图书类别信息 Mapper 接口
 * </p>
 *
 * @author zk
 * @since 2024-11-07
 */
@Mapper
public interface CategoriesMapper extends BaseMapper<Categories> {


    /**
     * 获取所有分类id
     * @return id列表
     */
    @Select("select category_id from categories")
    List<Integer> selectCategoryIds();
}
